package com.example.seckillweb.mapper;

import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author smc
* @description 针对表【goods】的数据库操作Mapper
* @createDate 2023-12-18 21:28:42
* @Entity com.example.seckillweb.mapper.Goods
*/
@Mapper
public interface GoodsMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Goods record);

    int insertSelective(Goods record);

    Goods selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Goods record);

    int updateByPrimaryKey(Goods record);

    List<Goods> findSecKillGoods();

    int deductStock(Integer goodsId);

    Goods selectByGoodsId(Integer goodsId);
}
